# -*- coding: utf-8 -*-
"""
用户系统 - URL配置
"""

from django.urls import path
from . import views

app_name = 'users'

urlpatterns = [
    # 页面视图
    path('login/', views.login_view, name='login'),
    path('register/', views.register_view, name='register'),
    path('logout/', views.logout_view, name='logout'),
    path('profile/<int:user_id>/', views.profile_view, name='profile'),
    path('settings/', views.settings_view, name='settings'),
    path('forgot-password/', views.forgot_password_view, name='forgot_password'),
    path('messages/', views.messages_view, name='messages'),
    
    # API接口
    path('api/send-code/', views.send_verification_code, name='api_send_code'),
    path('api/privacy/', views.update_privacy_settings, name='api_privacy'),
    path('api/upload-avatar/', views.upload_avatar, name='api_upload_avatar'),
    path('api/<int:user_id>/follow/', views.follow_user, name='api_follow'),
    path('api/<int:user_id>/unfollow/', views.unfollow_user, name='api_unfollow'),
    path('api/<int:user_id>/following/', views.get_following_list, name='api_following'),
    path('api/<int:user_id>/followers/', views.get_followers_list, name='api_followers'),
]
